<?php
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />";
require('connect.sql.php');
require('sql.function.php');
require('admin.function.php');

$power=1;

foreach ($_POST as $key => $value) {
	echo $key."=>".$value."<br/>";
}
$check=1;
if($_POST['sortname']!=''){
	$sortname=$_POST['sortname'];
}
else{
	$check=0;
}

if($_POST['sorttype']!=''){
	$sorttype=$_POST['sorttype'];
}
else{
	$check=0;
}
if($_POST['sortupid']!=''){
	$sortupid=$_POST['sortupid'];
}
else{
	$check=0;
}
if($_POST['sortpoint']!=''){
	$sortpoint=$_POST['sortpoint'];
}
else{
	$check=0;
}
if($_POST['sortmax']!=''){
	$sortmax=$_POST['sortmax'];
}
else{
	$check=0;
}
if($_POST['sortmin']!=''){
	$sortmax=$_POST['sortmin'];
}
else{
	$check=0;
}

//$groupid=$_POST['groupid'];
$res=0;
if($check==1)
{
	$res=insert_sort($sortname,$sorttype,$sortupid,$sortpoint,$sortmax,$sortmin);
}
if($res==1)
{
	echo "创建成功";
}
else
{
	echo "创建失败";
}



?>